#!/bin/sh

uci -q batch <<-EOF >/dev/null
	delete firewall.redsocks2
	set firewall.redsocks2=include
	set firewall.redsocks2.type=script
	set firewall.redsocks2.path=/etc/firewall.redsocks2
	set firewall.redsocks2.reload=1
	commit firewall
EOF

/etc/init.d/redsocks2 enable >/dev/null 2>&1

exit 0
